#pragma once
#include "StdAfx.h"
#include<boost/thread/thread.hpp>
class TThreadBase
{
protected:
	void MainDO();
	boost::thread* th;
	bool IsRunning;
	bool isCancel;
public:
	void Start();
	void Join();
	void Cancel();
	void Release();
	virtual void Do() = 0;
	TThreadBase();
	virtual ~TThreadBase();


};

